Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## append_sample #292 +/- ##
=================================================
+ Coverage 87.88% 88.48% +0.59%
=================================================
Files 45 46 +1
Lines 2584 2753 +169
Branches 311 334 +23
=================================================
+ Hits 2271 2436 +165
+ Misses 242 234 -8
- Partials 71 83 +12
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
jfkcooper
left a comment
There was a problem hiding this comment.
Basically only one comment on the code parts, and easily rectified. I will run the notebook now and give you feedback on this, but doing it in github is not fun for notebooks, so I submit these comments now
|
Thinking on it, I would also use this as a way to demonstrate mutliple contrasts for the lipid model, so using H2O as the solvent and subphase as well as D2O, and then showing the SLD curves, and the reflectivity curves (and the ability to set the constraints between the two models (or however you would put the models together). The most common use case of the lipid bilayer would be for fitting mulitple contrast (water) data. |
|
Addressed the code issues and modified the notebook to reflect Jos' comments. |
|
Thanks for the changes, though I just noticed a couple more things:
Let me know if you want a chat about any of these points, and thanks again for the progress! |
henrikjacobsenfys
left a comment
There was a problem hiding this comment.
Some comments and questions
* fix for appending samples from loaded models * added unit tests * use most recent version of refl1d * update docs to include add_sample_from_orso * temporarily revert to fwhm * proper conversion from stack to layers. * fixed SLD read. * added handling for orso names (model and experiment) * model reindexing issue fixed. Project rst added * path for SLD-less orso files
* fix for appending samples from loaded models * added unit tests * use most recent version of refl1d * update docs to include add_sample_from_orso * temporarily revert to fwhm * minor fixes after CR + ruff format * back to pointwise * proper conversion from stack to layers. * added method * temporarily switch off pointwise * fixed SLD read. * added handling for orso names (model and experiment) * minor fix for names * CR review fixes * model reindexing issue fixed. Project rst added * path for SLD-less orso files * fix variances sent to bumps. Make FWHM default (temporarily) * fixed test to correspond to new resolution * added logs for changing minimizers * reload constraints where necessary * expose chi2 properly * PR review #1 * Fix the zero variances issue * allow 3.13 * added some tests

As requested and described by @jfkcooper this is the library implementation of bilayers in EasyReflectometryLib.
Please scrutinize
docs\tutorials\simulation\bilayer.ipynbfor correctness and API.